Skip to content

Conversation

benrr101
Copy link
Contributor

Description

In this installment of cleaning up [ActiveIssue] tests, I focus mostly on the reliability tests, including upgrading the test cases to use TheoryData over a network of object arrays. Here's the tests that were re-enabled:

  • Microsoft.Data.SqlClient.ManualTests
    • LocalDBTest
      • SqlLocalDbNamedPipeConnectionTest
      • LocalDbNamedPipeEncryptionNotSupported
      • LocalDbNamedPipeMarsTest
    • SqlCommandReliabilityTest - Test cases rewritten to use strongly typed TheoryData and member data from properties instead of method calls
      • DropDatabaseWithActiveConnection
      • RetryExecuteWithTransScope
    • SqlConnectionReliabilityTest - Test cases rewritten to use strongly typed TheoryData and member data from properties instead of method calls
      • CreateDatabaseWhileTryingToConnect
      • "ConcurrentExecution" (of what? who knows.)
    • TvpTest
      • TestPacketNumberWraparound - Rewritten to be properly async/await, with improved timeout, and cancellation of the test action if the timeout expires

Issues

Continuation of work from #3624

Testing

Tests all pass locally! It's possible these will fail in CI, but we won't know until we try :)

@benrr101 benrr101 added this to the 7.0-preview2 milestone Sep 29, 2025
@benrr101 benrr101 requested a review from a team as a code owner September 29, 2025 21:53
@Copilot Copilot AI review requested due to automatic review settings September 29, 2025 21:53
@benrr101 benrr101 added the Area\Tests Issues that are targeted to tests or test projects label Sep 29, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR continues the effort to clean up [ActiveIssue] tests by re-enabling previously disabled tests and modernizing them to use TheoryData instead of object arrays. The focus is primarily on reliability tests for SQL connection and command operations.

Key Changes

  • Re-enabled multiple test methods by removing [ActiveIssue] attributes
  • Converted test data generation from object arrays to strongly typed TheoryData<string, SqlRetryLogicBaseProvider>
  • Modernized the TestPacketNumberWraparound test to use proper async/await patterns with improved timeout handling

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
SqlConnectionReliabilityTest.cs Added TheoryData properties and removed ActiveIssue attributes for reliability tests
SqlConfigurationManagerReliabilityTest.cs Fixed method name casing and added TODO comment
SqlCommandReliabilityTest.cs Converted to TheoryData, removed ActiveIssue attributes, and improved method naming
RetryLogicTestHelper.cs Refactored helper methods to return TheoryData instead of object arrays
TvpTest.cs Modernized TestPacketNumberWraparound to use async/await with proper cancellation
LocalDBTest.cs Re-enabled LocalDB tests by removing ActiveIssue attributes

Copy link

codecov bot commented Sep 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.58%. Comparing base (d244be2) to head (fe6d29b).
⚠️ Report is 12 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3642      +/-   ##
==========================================
+ Coverage   66.43%   66.58%   +0.14%     
==========================================
  Files         271      275       +4     
  Lines       60277    60120     -157     
==========================================
- Hits        40048    40029      -19     
+ Misses      20229    20091     -138     
Flag Coverage Δ
addons 90.82% <ø> (?)
netcore 70.18% <ø> (+0.29%) ⬆️
netfx 69.00% <ø> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@paulmedynski paulmedynski self-assigned this Oct 1, 2025
@benrr101 benrr101 merged commit c2554ad into main Oct 2, 2025
252 checks passed
@benrr101 benrr101 deleted the dev/russellben/active-issues3 branch October 2, 2025 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area\Tests Issues that are targeted to tests or test projects

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants